/**
 * 
 */
package com.hertz.appr.http;

import java.util.HashMap;

import org.apache.commons.httpclient.protocol.Protocol;


public class HttpClientUrl implements Cloneable {
	private String path;

	private HashMap params;

	private String host;

	private int port;

	private Protocol protocol;

	/**
	 * @return Returns the host.
	 */
	public String getHost() {
		return host;
	}

	/**
	 * @param host
	 *            The host to set.
	 */
	public void setHost(String host) {
		this.host = host;
	}

	/**
	 * @return Returns the path.
	 */
	public String getPath() {
		return path;
	}

	/**
	 * @param path
	 *            The path to set.
	 */
	public void setPath(String path) {
		this.path = path;
	}

	/**
	 * @return Returns the port.
	 */
	public int getPort() {
		return port;
	}

	/**
	 * @param port
	 *            The port to set.
	 */
	public void setPort(int port) {
		this.port = port;
	}

	/**
	 * @return Returns the protocol.
	 */
	public Protocol getProtocol() {
		return protocol;
	}

	/**
	 * @param protocol
	 *            The protocol to set.
	 */
	public void setProtocol(Protocol protocol) {
		this.protocol = protocol;
	}

	/**
	 * @return
	 */
	public HashMap getParams() {
		return params;
	}

	/**
	 * @param params
	 */
	public void setParams(HashMap params) {
		this.params = params;
	}

	/**
	 * Clone method
	 */
	public Object clone() {
		HttpClientUrl url = null;
		try {
			url = (HttpClientUrl) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
			url = new HttpClientUrl();
		}
		return url;
	}

}
